package com.ttc.ssm.service.admin;

import com.ttc.ssm.common.CompanyPage;
import com.ttc.ssm.po.Ad;

import java.util.List;
import java.util.Map;

/**
 * Created by 58296 on 2016/8/1.
 */
public interface AdService {
    List<Ad> selectAdForPage(CompanyPage companyPage) throws Exception;
    int countRows(CompanyPage companyPage) throws Exception;
    void deleteAds(Map<String,Object> map) throws Exception;
    void updateAd(Ad ad) throws Exception;
    void insertAd(Ad ad) throws Exception;
    void updateAdStatus(int ad_id,int status) throws Exception;
    Ad selectAdById(int ad_id) throws Exception;
}
